

            
// This code is a generated code by a tool
// designed and coded by Shohdi Mohamed Elsheemy ( shohdi@gmail.com )

            
using System;
using System.Collections.Generic;
using System.Web;
namespace DatabaseComponent
{
[Serializable]
public partial class TicketType
{
System.Int64 _ID =-1;
public System.Int64 ID
{
get { return _ID;}
set { _ID = value;}
}
System.String _TicketTypeNameAR ="";
public System.String TicketTypeNameAR
{
get { return _TicketTypeNameAR;}
set { _TicketTypeNameAR = value;}
}
System.String _TicketTypeNameEN ="";
public System.String TicketTypeNameEN
{
get { return _TicketTypeNameEN;}
set { _TicketTypeNameEN = value;}
}
public TicketType()
{
}
public TicketType(System.String __TicketTypeNameAR,System.String __TicketTypeNameEN)
{
_TicketTypeNameAR = __TicketTypeNameAR;
_TicketTypeNameEN = __TicketTypeNameEN;
}
public TicketType(System.Int64 __ID,System.String __TicketTypeNameAR,System.String __TicketTypeNameEN)
{
_ID = __ID;
_TicketTypeNameAR = __TicketTypeNameAR;
_TicketTypeNameEN = __TicketTypeNameEN;
}


             public override bool Equals(object obj)
         {
             if (obj is TicketType)
             {
                 TicketType newObj = (TicketType)obj;

                 if (newObj.ID == this.ID )
                 {
                     return true;
                 }
                 else
                 {
                     return false;
                 }
             }

             else
             {
                 return false;
             }

            
         }            











             }
}
